* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

.container {
    width: 100%;
    height: 100vh;
    position: relative;
    background-position: center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-image 0.5s ease;
}

body.dark .container::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: -1;
}

/* CARD */
.card {
    width: 90%;
    max-width: 440px;
    color: #ffffff;
    text-align: center;
    padding: 50px 35px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
    backdrop-filter: blur(5px);
}

.card img {
    width: 140px;
    border-radius: 50%;
}

.card h2 {
    font-size: 40px;
    font-weight: 600;
    margin-top: 20px;
    color: #ffffffc0;
}

.card p {
    font-size: 18px;
    margin: 10px auto;
    max-width: 330px;
    color: #ffffffa9;
}

.card .links img {
    width: 40px;
    border-radius: 50%;
    margin: 10px 5px;
    transition: background 0.5s;
}

.card .links img:hover {
    background: #ffffff;
    box-shadow: 0 6px 12px rgba(0,0,0,0.5);
}

/* BUTTON */
.btn {
    text-decoration: none;
    display: inline-block;
    font-size: 18px;
    font-weight: 500;
    background: #012c4779;
    color: #ffffff;
    padding: 10px 30px;
    border-radius: 30px;
    margin: 30px 0 10px;
}

.btn:hover {
    background: #ffffffd0;
    transform: scale(1.05);
    color: black;
    box-shadow: 0 6px 12px black;
}

/* TEXT SWITCH BUTTONS */
#fullscreenText,
#themeText {
  position: absolute;
  bottom: 10px;
  left: 50%;
  cursor: pointer;
  z-index: 1002;
  display: inline-block;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
  background: #00b89300;
  color: #ffffff;
  padding: 6px 28px;
  border-radius: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#fullscreenText {
  transform: translateX(-120%);
}

#themeText {
  transform: translateX(20%);
}

#fullscreenText:hover {
    background: #00251e01;
    transform: translateX(-120%) scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

#themeText:hover {
    background: #00251e01;
    transform: translateX(20%) scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

/* CHANGELOG */
.changelog-link {
    position: fixed;
    bottom: 20px;
    right: 20px;
    color: rgba(255,255,255,0.4);
    padding: 8px 16px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 1000;
}

.changelog-link:hover {
    transform: scale(1.05);
    text-shadow: 0 0 8px rgba(255,255,255,0.4);
}

/* CLOCK */
.glass-clock {
    position: absolute;
    bottom: 50px;
    right: 20px;
    display: flex;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    text-decoration: none;
    color: inherit;
}

.clock-segment {
    font-size: 32px;
    font-weight: bold;
    color: #ffffff40;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 10px 14px;
    min-width: 60px;
    text-align: center;
    box-shadow: inset 0 -4px 8px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.glass-clock:hover .clock-segment {
    transform: scale(1.08);
}

/* VIDEO BACKGROUND */
video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    opacity: 0;
    transition: opacity 1s ease;
}

video.active {
    opacity: 1;
}

/* ---------------- MOBILE FIXES ---------------- */
@media (max-width: 430px) {

  .button-row {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    gap: 10px;
    padding: 10px 0;
    width: 100%;
    justify-content: flex-start;
    scrollbar-width: none;
  }

  .button-row::-webkit-scrollbar {
    display: none;
  }

  .btn-small {
    flex: 0 0 auto;
    background: rgba(0, 0, 0, 0.55);
    color: #ffffff;
    padding: 8px 18px;
    font-size: 12px;
    border-radius: 14px;
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  }

  .btn-small:hover {
    background: rgba(255,255,255,0.25);
    color: #ffffff;
  }

  .card {
    padding: 25px 20px;
  }

  #fullscreenText,
  #themeText {
    bottom: 25px;
  }

  .glass-clock {
    bottom: 90px;
    right: 10px;
    transform: scale(0.9);
  }
}
@media (max-width: 430px) {

  /* Move changelog higher */
  .changelog-link {
    bottom: 80px;
    right: 20px;
  }

  /* Shift theme button slightly left */
  #themeText {
    transform: translateX(0%);
  }

  /* Shift fullscreen button slightly left too */
  #fullscreenText {
    transform: translateX(-100%);
  }
}
